Component({
    properties: {
        size: {
            type: String,
            value: "46rpx",
            observer: function(t) {
                /^\d+$/.test(t) && (t = 2 * +t + "rpx"), this.setData({
                    fontSize: t
                });
            }
        },
        type: {
            type: String,
            observer: function(t) {
                this.setData({
                    iconType: t.replace(/_/g, "-")
                });
            }
        },
        color: String,
        background: String
    }
});